<%= stylesheet_link_tag "back-solu-show-page", :media => "all"  %>   
<% @title = "CGT Solutions Page Back - Listing Solutions Show Page" -%>
<% @header = "CGT Solutions Page Back - Listing Solutions Show Page" -%>
<div id="block-mgt">    
  <%= render(:partial => 'menu') %>      
  <div id="operate-mgt">
    <div id="operate-intro">
      <h3>Information For Listing Solutions Show Page</h3>
      <p>In this page, there are many solution cases of CGT. Listing Solutions Show Page displays those cases for Admin who can list, create, edit, show and delete.  
      <p>The order of listing those cases is with the date of the input. The newest one is listed in the top. All of cases are listed with paginating. One page of the list has 15 cases' titles and dates.
      <p>In the list, there are the information of Solution Cases' Titles, and Dates. Admin can select one of those to operate. Creating is to make a lastest solution case.
      </p>
    </div><!-- end #operate-intro -->

    <div id="operate-area">
      <h3>Listing Solutions Show Page</h3>

        <div id="operate-listing">
          <div id="operate-line">
            <% for solution in @solutions %>
              <div id="operate-item">
                <ul>
                  <% if solution.id == Solution.find(:first,:order => "updated_at DESC").id %>
                    <li><%=h solution.so_title %></li>
                    <li><%=h solution.updated_at.strftime("%b.,%d,%Y") %></li>
                    <li><%=link_to 'edit',:controller=>'back_solutions',:action=>'show',:id=>solution.id%></li>
                    <li><%=link_to 'delete',:controller=>'back_solutions',:action=>'destroy',:id=>solution.id%></li>
                  <% else  %>
                    <li><%=h solution.so_title %></li>
                    <li><%=h solution.updated_at.strftime("%b.,%d,%Y") %></li>
                    <li><%=link_to 'edit',:controller=>'back_solutions',:action=>'show',:id=>solution.id%></li>
                    <li><%=link_to 'delete',:controller=>'back_solutions',:action=>'destroy',:id=>solution.id%></li>
                  <% end %>  
                                              
              
                </ul>
              </div>
            <% end %>  
          </div><!-- End #operate-line -->
          <div id="news-buttons">
            <div class="paginate"><%= will_paginate @solutions %></div>
          </div>
        </div><!-- End #operate-listing --> 

        <div id="operate-buttons"> 
          <ul>
            <%= link_to 'New Content',:action => "new"  %>
          </ul>
        </div><!-- End #operate-bottons -->

     
    </div> <!-- end #operate-area -->
    
  </div> <!-- end #operate-mgt -->

  
</div> <!-- end #block-mgt -->